// component/label/label.js
Component({
    /**
     * 组件的属性列表
     */
    properties: {
        labelDetail: {
            type: Object,
            value: {}
        },
        userInfo: {
            type: Object,
            value: {}
        }
    },

    /**
     * 组件的初始数据
     */
    data: {
        image: 'https://cdn-we-retail.ym.tencent.com/retail-ui/components-exp/avatar/avatar-v2/1.png',
    },

    /**
     * 组件的方法列表
     */
    methods: {
        avatarClick(events) {
            console.log("avatarClick", events.currentTarget.dataset.id)
            wx.navigateTo({
                url: `/pages/label/userInfo/userInfo?id=${events.currentTarget.dataset.id}`,
                events: events,
                success: (result) => { },
                fail: (res) => { },
                complete: (res) => { },
            })
        }
    }
})
